package com.example.xpvideo.entity;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 一级分类API(CommodityType)实体类
 *
 * @author 杨丽辉
 * @since 2021-07-15 15:07:28
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CommodityType implements Serializable {
    private static final long serialVersionUID = 923782918499926987L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
        private Integer id;

                private Integer commodityTypeId;
    /**
    * 分类名字
    * isnull 0
    */            private String commodityTypeName;
    /**
    * 是否显示,0不显示，1显示
    * isnull 0
    */            private Integer isShow;
    /**
    * 1一级分类，2二级分类
    * isnull 0
    */            private Integer type;
    /**
    * 二级分类id
    * isnull 0
    */            private Integer commoditySecondTypeId;
        
    public Integer getCommodityTypeId() {
        return commodityTypeId;
    }

    public void setCommodityTypeId(Integer commodityTypeId) {
        this.commodityTypeId = commodityTypeId;
    }
        
    public String getCommodityTypeName() {
        return commodityTypeName;
    }

    public void setCommodityTypeName(String commodityTypeName) {
        this.commodityTypeName = commodityTypeName;
    }
        
    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }
        
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
        
    public Integer getCommoditySecondTypeId() {
        return commoditySecondTypeId;
    }

    public void setCommoditySecondTypeId(Integer commoditySecondTypeId) {
        this.commoditySecondTypeId = commoditySecondTypeId;
    }
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"commodityTypeId\":" + commodityTypeId +
                                  " ,\"commodityTypeName\":" + commodityTypeName +
                            " ,\"isShow\":" + isShow +
                            " ,\"type\":" + type +
                            " ,\"commoditySecondTypeId\":" + commoditySecondTypeId +
                            " ,\"id\":" + id +
                  '}';
    }


}
